<template>
  <h1>父组件:{{ num }}</h1>
  <h1>传递O：{{ o }}</h1>
  <ArticleCom2 @chuandi="num=$event"
    @chuanO="o=$event"></ArticleCom2>
</template>
<!-- // setup作为script的属性 是 setup函数的语法糖 -->
<script setup>
import ArticleCom2 from './components/ArticleCom2.vue';
import {ref} from 'vue'
let num = ref(0)
let o = ref(null)
// const fun = (arg)=>{
//  num.value = arg
// }
</script>
<script>
export default {
name: 'App',
}
</script>
